// pages/classify/classify.js
Component({
  /**
   * 组件的属性列表
   */
  properties: {

  },

  /**
   * 组件的初始数据
   */
  data: {
    clicknum:0,
    fenlei: [
      { name: '食材', id:0 },
      { name: '粮油调料', id: 1 },
      { name: '酒水饮料', id: 2 },
      { name: '综合用品', id: 3 },
      { name: '厨房用具', id: 4 },
      { name: '专业设备', id: 5 },
      { name: '粮食类', id: 6 },
      { name: '其它', id: 7 }
    ],
    twofenlei:[
      {name:'小麦',img:'../../resource/image/cp6.jpg',id:11},
      { name: '小麦', img: '../../resource/image/cp6.jpg', id: 11 },
      { name: '小麦', img: '../../resource/image/cp6.jpg', id: 11 },
      { name: '小麦', img: '../../resource/image/cp6.jpg', id: 11 },
      { name: '小麦', img: '../../resource/image/cp6.jpg', id: 11 },
      { name: '小麦', img: '../../resource/image/cp6.jpg', id: 11 },
      { name: '小麦', img: '../../resource/image/cp6.jpg', id: 11 },
      { name: '小麦', img: '../../resource/image/cp6.jpg', id: 11 },
      { name: '小麦', img: '../../resource/image/cp6.jpg', id: 11 },
      { name: '小麦', img: '../../resource/image/cp6.jpg', id: 11 },
      { name: '小麦', img: '../../resource/image/cp6.jpg', id: 11 },
      { name: '小麦', img: '../../resource/image/cp6.jpg', id: 11 },
      { name: '小麦', img: '../../resource/image/cp6.jpg', id: 11 },
      { name: '小麦', img: '../../resource/image/cp6.jpg', id: 11 },
      { name: '小麦', img: '../../resource/image/cp6.jpg', id: 11 },
      { name: '小麦', img: '../../resource/image/cp6.jpg', id: 11 },
      { name: '小麦', img: '../../resource/image/cp6.jpg', id: 11 },
      { name: '小麦', img: '../../resource/image/cp6.jpg', id: 11 },
      { name: '小麦', img: '../../resource/image/cp6.jpg', id: 11 },
      { name: '小麦', img: '../../resource/image/cp6.jpg', id: 11 },
      { name: '小麦', img: '../../resource/image/cp6.jpg', id: 11 },
      { name: '小麦', img: '../../resource/image/cp6.jpg', id: 11 },
      { name: '小麦', img: '../../resource/image/cp6.jpg', id: 11 },
      { name: '小麦', img: '../../resource/image/cp6.jpg', id: 11 },
      { name: '小麦', img: '../../resource/image/cp6.jpg', id: 11 },
      { name: '小麦', img: '../../resource/image/cp6.jpg', id: 11 },
      { name: '小麦', img: '../../resource/image/cp6.jpg', id: 11 },
      { name: '小麦', img: '../../resource/image/cp6.jpg', id: 11 }
    ]
  },

  /**
   * 组件的方法列表
   */
  methods: {
    onLoad: function (options) {
      this.setData({ 'clicknum': options.id})
    },
    clicknav:function(e){
      this.setData({ 'clicknum': e.currentTarget.dataset.dd})
    }
  }
})
